package com.leetcode.leetcode.aoptest;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @description:
 * @author: licm
 * @create: 2021-08-17 15:37
 **/


@RestController
@Slf4j
public class AopControllerTest {

    @GetMapping(value = "/send_message", produces = "text/json;charset=UTF-8")
    public String send_message(String str) throws Exception {
        log.info("执行了controller.send_message方法");
        System.out.println(str);
        return str;
    }

    @GetMapping(value = "/send_message1", produces = "text/json;charset=UTF-8")
    public String send_message1(String str) throws Exception {
        log.info("执行了controller.send_message方法");
        System.out.println(str);
        return str;
    }
}

